/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.lczyfz.wisdom.modules.platform.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.lczyfz.wisdom.common.persistence.DataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

/**
 * addressEntity
 * @author zkh
 * @version 2019-09-26
 */
@ApiModel(value="用户地址" )
public class Address extends DataEntity<Address> {
	
	private static final long serialVersionUID = 1L;
	@ApiModelProperty(value = "用户id",name = "userId",required = true,example = "928293782")
	private String userId;		// 用户id
	@JsonProperty(value = "userName")
	@ApiModelProperty(value = "用户名称",name = "userName",required = true,example = "张三")
	private String userName;		// 用户姓名
	@JsonProperty(value = "uMobile")
	@ApiModelProperty(value = "用户移动电话",name = "uMobile",required = true,example = "17898980909")
	private String uMobile;		// 用户电话
	@ApiModelProperty(value = "是否 默认 ",name = "isdefault",required = true,example = "1")
	private String isdefault;//是否 默认   1 默认收货地址  0 非默认
	@ApiModelProperty(value = "收获地址（省） ",name = "receiverState",required = true,example = "福建省")
	private String receiverState;	//'收获地址（省）',
	@ApiModelProperty(value = "收获地址（市） ",name = "receiverCity",required = true,example = "福州市")
	private String receiverCity; 	//'收获地址（市）',
	@ApiModelProperty(value = "收获地址（区/县） ",name = "receiverDistrict",required = true,example = "鼓楼区")
	private String receiverDistrict;	//'收获地址（区/县）',
	@JsonProperty(value = "detailAdd")
	@ApiModelProperty(value = "用户详细地址",name = "detailAdd",required = true,example = "5座201")
	private String detailAdd;		// 详细地址
	
	public Address() {
		super();
	}

	public Address(String id){
		super(id);
	}

	@Length(min=1, max=64, message="用户id长度必须介于 1 和 64 之间")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Length(min=1, max=255, message="用户姓名长度必须介于 1 和 255 之间")
	public String getUserName(){return userName;}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@Length(min=1, max=255, message="用户地洞电话长度必须介于 1 和 255 之间")
	public String getUMobile() {
		return uMobile;
	}

	public void setUMobile(String uMobile) {
		this.uMobile = uMobile;
	}

	@Length(min=1, max=255, message="详细地址长度必须介于 1 和 255 之间")
	public String getDetailAdd() {
		return detailAdd;
	}

	public void setDetailAdd(String detailAdd) {
		this.detailAdd = detailAdd;
	}

	public String getuMobile() {
		return uMobile;
	}

	public void setuMobile(String uMobile) {
		this.uMobile = uMobile;
	}

	public String getIsdefault() {
		return isdefault;
	}

	public void setIsdefault(String isdefault) {
		this.isdefault = isdefault;
	}

	public String getReceiverState() {
		return receiverState;
	}

	public void setReceiverState(String receiverState) {
		this.receiverState = receiverState;
	}

	public String getReceiverCity() {
		return receiverCity;
	}

	public void setReceiverCity(String receiverCity) {
		this.receiverCity = receiverCity;
	}

	public String getReceiverDistrict() {
		return receiverDistrict;
	}

	public void setReceiverDistrict(String receiverDistrict) {
		this.receiverDistrict = receiverDistrict;
	}
}